/**
 * 服务
 * */
package org.zmhhxl.user.service;


import org.zmhhxl.api.auth.domain.entity.ThirdPartyUser;

import java.util.Optional;

public interface ThirdPartyUserService {

//   @Autowired
//   private final UserInfoService userInfoService;
//
//   private final ThirdPartyUserRepository thirdPartyUserRepository;
//
//   private final ThirdPartyUserMapper thirdPartyUserMapper;
//
//   public ThirdPartyUserService(UserInfoService userInfoService, ThirdPartyUserRepository thirdPartyUserRepository, ThirdPartyUserMapper thirdPartyUserMapper) {
//      this.userInfoService = userInfoService;
//      this.thirdPartyUserRepository = thirdPartyUserRepository;
//      this.thirdPartyUserMapper = thirdPartyUserMapper;
//   }

   Optional<ThirdPartyUser> findById(Long id);

   ThirdPartyUser findByThirdPartyIdAndThirdPartyType(String thirdPartyId, String thirdPartyType) ;

   Optional<ThirdPartyUser> findByThirdPartyIdAndThirdPartyDomain(String thirdPartyId, String domain);

   ThirdPartyUser save(ThirdPartyUser thirdPartyUser);
}
